#!/usr/bin/env python
#####################################
# Installation module for Bettercap
#####################################

# AUTHOR OF MODULE NAME
AUTHOR="Sanjiv Kawa (@skawasec)" 

# DESCRIPTION OF THE MODULE
DESCRIPTION="This module will install/update Bettercap, a complete, modular, portable and easily extensible MITM tool and framework"

# INSTALL TYPE GIT, SVN, FILE DOWNLOAD
# OPTIONS = GIT, SVN, FILE
INSTALL_TYPE="GIT"

# LOCATION OF THE FILE OR GIT/SVN REPOSITORY
REPOSITORY_LOCATION="https://github.com/bettercap/bettercap.git"

# WHERE DO YOU WANT TO INSTALL IT
INSTALL_LOCATION="bettercap"

# DEPENDS FOR DEBIAN INSTALLS
DEBIAN="wget,libpcap-dev,libusb-1.0-0-dev,libnetfilter-queue-dev"

# DEPENDS FOR FEDORA INSTALLS
FEDORA="wget,libpcap-devel,libusb-devel,libnetfilter_queue-devel"

# COMMANDS TO RUN AFTER
AFTER_COMMANDS="cd /tmp,mkdir gopath,wget 'https://dl.google.com/go/go1.12.linux-amd64.tar.gz',tar -axf go1.12.linux-amd64.tar.gz,PATH=$PATH:/tmp/go/bin GOROOT=/tmp/go GOPATH=/tmp/gopath go get github.com/bettercap/bettercap,cd /tmp/gopath/src/github.com/bettercap/bettercap,PATH=$PATH:/tmp/go/bin GOROOT=/tmp/go GOPATH=/tmp/gopath make build,make install,rm -rf /tmp/go /tmp/gopath /tmp/go1.12.linux-amd64.tar.gz"
